<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
	
	<head>
		<meta charset="utf-8" />
		<title>后台管理系统</title>

		<meta name="description" content="data tables" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="shortcut icon" href="/Public/assets/img/favicon.png" type="image/x-icon">

		<!--Basic Styles-->
		<link href="/Public/assets/css/bootstrap.min.css" rel="stylesheet" />
		<link id="bootstrap-rtl-link" href="#" rel="stylesheet" />
		<link href="/Public/assets/css/font-awesome.min.css" rel="stylesheet" />
		<link href="/Public/assets/css/weather-icons.min.css" rel="stylesheet" />
		<link href="/Public/assets/css/ladda-themeless.min.css" rel="stylesheet" />

		<!--Fonts-->

		<!--Beyond styles-->
		<link id="beyond-link" href="/Public/assets/css/beyond.min.css" rel="stylesheet" />
		<link href="/Public/assets/css/demo.min.css" rel="stylesheet" />
		<link href="/Public/assets/css/typicons.min.css" rel="stylesheet" />
		<link href="/Public/assets/css/animate.min.css" rel="stylesheet" />
		<link href="/Public/assets/css/dataTables.bootstrap.css" rel="stylesheet" />
		<style type="text/css">
			.page-content {
				margin-left: 0;
			}
		</style>
		<script src="/Public/assets/js/jquery.min.js"></script>
		
		
	</head>
	<!-- /Head -->
	<!-- Body -->

	<body>
		
		
		
	<div class="page-content">
		<div class="page-breadcrumbs">
			<ul class="breadcrumb">
				<li>
					<i class="fa fa-home"></i>
					<a href="<?php echo U('dashboard/index');?>">系统首页</a>
				</li>
				<li>
					<a href="<?php echo U('manager/index');?>">管理中心</a>
				</li>
				<li class="active">后台用户列表</li>
			</ul>
		</div>
		<div class="page-body">
			<div class="row">
				<div class="col-xs-12 col-md-12">
					<div class="widget">
						<div class="widget-header bordered-bottom bordered-blue">
							<span class="widget-caption">管理员列表</span>
						</div>
						<div class="widget-body">
							<div class="text-align-right margin-bottom-10">
                            		<a href="<?php echo U('manager/add');?>" class="btn btn-danger ajax-load" ><i class="fa fa-plus"></i>添加用户</a>                            		
                            	</div>
							<table class="table table-bordered table-hover">
								<thead>
									<tr>
										<th class="text-center">ID</th>
										<th class="text-center">用户名</th>
										<th class="text-center">用户组</th>
										<th class="text-center">登陆时间</th>
										<th class="text-center">登陆IP</th>
										<th class="text-center">登陆次数</th>
										<th class="text-center" width="200">操作</th>
									</tr>
								</thead>

								<tbody>
									<?php if(is_array($result)): $i = 0; $__LIST__ = $result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><tr>
											<td class="text-center"><?php echo ($val["id"]); ?></td>
											<td class="text-center"><?php echo ($val["username"]); ?></td>
											<td class="text-center"><?php echo ($val["group_name"]); ?></td>
											<td class="text-center"><?php echo format_time($val['login_time']);?></td>
											<td class="text-center"><?php echo ($val["login_ip"]); ?></td>
											<td class="text-center"><?php echo ($val["login_count"]); ?></td>
											<td class="text-center">
												<a href="<?php echo U('manager/edit',['id'=>$val['id']]);?>" class="btn btn-default btn-xs ajax-load"><i class="fa fa-edit"></i>编辑</a>
												<a href="<?php echo U('manager/delete',['id'=>$val['id']]);?>" data-confirm="确定删除该用户？" class="btn btn-default btn-xs"><i class="fa fa-trash-o"></i>删除</a>
											</td>
										</tr><?php endforeach; endif; else: echo "" ;endif; ?>
								</tbody>
							</table>
							<div class="row DTTTFooter">
								<div class="col-sm-6">
									<div class="dataTables_info" id="simpledatatable_info" role="status" aria-live="polite">

									</div>
								</div>
								<div class="col-sm-6">
									<div class="dataTables_paginate paging_bootstrap" id="simpledatatable_paginate">
										<?php echo ($page); ?>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

				<!--Basic Scripts-->
		
		<script src="/Public/assets/js/bootstrap.min.js"></script>
		<script src="/Public/assets/js/slimscroll/jquery.slimscroll.min.js"></script>
		<script src="/Public/assets/js/fuelux/spinbox/fuelux.spinbox.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="/Public/assets/js/loading/spin.js" type="text/javascript" charset="utf-8"></script>
		<script src="/Public/assets/js/loading/ladda.js" type="text/javascript" charset="utf-8"></script>
		<script src="/Public//assets/js/bootstrap-modalmanager.js" type="text/javascript" charset="utf-8"></script>
		<!--Beyond Scripts-->
		<script src="/Public/assets/js/beyond.js"></script>
		<script src="/Public/assets/js/toastr/toastr.js"></script>
		<script src="/Public/assets/js/bootbox/bootbox.js"></script>
		<script src="/Public/assets/js/common.js"></script>
		
	<script src="/Public/assets/js/validation/bootstrapValidator.js" type="text/javascript" charset="utf-8"></script>



	</body>
	<!--  /Body -->
	<script>
		 <?php if (!IS_AJAX) { $success_message = session('__SUCCESS_MESSAGE'); if ($success_message) { echo "tips('".$success_message. "');"; } session('__SUCCESS_MESSAGE', null); $error_message = session('__ERROR_MESSAGE'); if ($error_message) { echo "tips('".$error_message. "','danger');"; } session('__ERROR_MESSAGE', null); } ?>
	
	if(parent && typeof parent._attachEvent == 'function'){
		parent._attachEvent(document.documentElement, 'keydown', parent.resetF5);
	}
	</script>

</html>